//hideInSearch  在搜索上面不显示
import type { TableColumn } from '@/framework/components/core/super-table';
import dayjs from 'dayjs';
export type TableColumnList = TableColumn<API.SampleTransportColumnsItem>[];

const columns: TableColumnList = [
  {
    type: 'checkbox',
    title: '',
    width: 60,
  },
  {
    type: 'seq',
    title: '序号',
    width: 60,
  },
  {
    title: '项目组',
    field: 'projectName',
  },
  {
    title: '样本编号',
    field: 'specimenSerial',
  },
  {
    title: '样本名称',
    field: 'specimenName',
  },
  {
    title: '采样日期',
    field: 'sampleTime',
    hideInSearch: true,
    formatter: ({ cellValue }) => {
      return cellValue ? dayjs(cellValue).format('YYYY-MM-DD') : '-';
    },
  },
  {
    title: '样本类型',
    field: 'specimenType',
    hideInSearch: true,
  },
  {
    title: '数字编号',
    field: 'serial',
    hideInSearch: true,
  },
  {
    title: '容量',
    field: 'capacity',
    width: 100,
  },
];
export default columns;
